package com.android.sunnyweather.app

import android.annotation.SuppressLint
import android.app.Application
import android.content.Context

class MyApplication: Application() {

    companion object{
        //告诉AS这个context是全局唯一的弱引用，不会产生内存泄漏
        @SuppressLint("StaticFieldLeak")
        lateinit var myApp: Context
        //彩云天气的令牌
        const val TOKEN = "QFu3OVMd6wqAXfZN"
    }

    override fun onCreate() {
        super.onCreate()
        myApp = applicationContext
    }
}